package com.jian.java.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Jiange
 * @create 2021-05-02-20:32
 */
@Configuration
public class MyMVCConfig implements WebMvcConfigurer {

    @Bean
    public LocaleResolver localeResolver(){
        return new MYLocaleResolver();
    }
}
